




import http from "@/server/http";

export const apiRegisterSerial = (params) => {
    return http({
        url: "/common/login/RegisterSerial",
        method: "POST",
        data: params,
    })
}


//注册
export const apiRegisterUser = (params) => {
    return http({
        url: "/common/login/RegisterAccount",
        method: "POST",
        data: params,
    })
}

//省市区获取单位信息
export const queryAreasGetUnitInfo = (params) => {
    return http({
        url: "/common/login/AreasGetUnitInfo",
        method: "POST",
        data: params,
    })
}



// 找回
export const apiUserAppeal = (params) => {
    return http({
        url: "/common/login/appealRetrievePassword",
        method: "POST",
        data: params,
    })
}


// 短信找回
export function apiNoteAppeal(params) {
    return http({
        url: "/setting/personalBasic/send_code",
        method: "POST",
        data: params,
    })
}

// 编辑密码
export function apiUpdatePassword(params) {
    return http({
        url: "/wx/userInfo/edit_password",
        method: "POST",
        data: params,
    })
}

// 获取部门
export function apiGetDepartment(params) {
    return http({
        url: "/unit/department/get_add_department_info",
        method: "POST",
        data: params,
    })
}


// 获取个人资料
export function apiGetUserInfo(params) {
    return http({
        url: "/setting/personalBasic/get_personal_basic_profile",
        method: "POST",
        data: params,
    })
}

// 编辑个人资料
export function apiEditPersonInfo(params) {
    return http({
        url: "/wx/userInfo/edit_ordinary_users",
        method: "POST",
        data: params,
    })
}



// 用户使用记录
export function apiGetUesrUseRecord(params) {
    return http({
        url: "/user/record/get_usage_records",
        method: "POST",
        data: params,
    })
}



// 验证家长密码
export function apiVerifyParentPassword(params) {
    return http({
        url: "/task/test/report/check_parent_password",
        method: "POST",
        data: params,
    })
}



// 获取token
export function getToken(params) {
    return http({
        url: "/main/index/get_token",
        method: "POST",
        data: params,
    })
}